<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

session_start();
$contexto="/atletismo";
//print_r($_SERVER);
//print "<hr>";
//print $_SERVER['HTTP_REFERER'] . "(" . strlen($_SERVER['HTTP_REFERER']) . ")<br>";
//print $_SERVER['REQUEST_URI'] . "(" . strlen($_SERVER['REQUEST_URI']) . ")<br>";

$prot_host = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME'];
//print $prot_host . $contexto;
$indice='/index2.php';
header( 'Location: ' . $prot_host . $contexto . $indice ) ;

?>